<?php

namespace App\Http\Validators;

use Validator;

class UserVideosReport implements ValidatorInterface
{
    use ValidatorTraits;

    public function rules()
    {
        $rules = [
            'uid' => 'required',
            'video_id' => 'required|numeric',
            'type' => 'required',
        ];

        $this->rules = $rules;
    }

    public function msgs()
    {
        $messages = [
            'uid.required' => '用户信息缺失',
            'video_id.required' => '举报视频id号缺失',
            'video_id.numeric' => '举报视频id号必须是数字',
            'type.required' => '举报类型缺失',
        ];

        $this->msgs = $messages;
    }

}